package com.nulldev.util.data.Sets;

import com.nulldev.util.JVM.JVM;

public class DataTriplet<A, B, C> {
	private final A dataSetA;
	private final B dataSetB;
	private final C dataSetC;

	public DataTriplet(final A valA, final B valB, final C valC) {
		this.dataSetA = valA;
		this.dataSetB = valB;
		this.dataSetC = valC;
	}

	public A getA() {
		return this.dataSetA;
	}

	public B getB() {
		return this.dataSetB;
	}

	public C getC() {
		return this.dataSetC;
	}

	@Override
	public String toString() {
		return "DataTriplet[" + this.dataSetA + ", " + this.dataSetB + ", " + this.dataSetC + "]";
	}

	public void println() {
		JVM.println(this.dataSetA + ", " + this.dataSetB + ", " + this.dataSetC);
	}

	public DataSet<A, B> toDataSet() {
		return new DataSet<A, B>(this.dataSetA, this.dataSetB);
	}
}
